package com.baiku.sanhos.utils.security;

import lombok.Getter;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

import java.util.Collection;


@Getter
public class CustomUserDetails extends User {


    private Integer flag;


    public CustomUserDetails(Integer flag,String username, String password, Collection<? extends GrantedAuthority> authorities) {
        super(username, password, authorities);

        this.flag=flag;
    }
}
